package com.forekenow.Demo10;


public class Person {
    private int age;
    public Person(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    public static void main(String[] args) {
        Person person = new Person(20);
        Person person1 = new Person(20);
        System.out.println(person==person1);
        System.out.println(person.equals(person1));
    }
}
